package com.onlinevideo.service;

import com.onlinevideo.entity.Page;
import com.onlinevideo.entity.Video;

import java.util.List;
import java.util.Map;

public interface VideoService {
    int insert(Video video);

    int delete(Long id);



    int update(Video video);

    int update(Map<String, Object> videoInfo);

    Video queryById(Long id);

    Video queryByIdS1(Long id);
    Video queryByIdS0(Long id);

    List<Video> queryAll();

    List<Video> queryAllS1();
    List<Video> queryAllS0();

    List<Video> queryByName(String name);

    List<Video> queryByConditions(Video video);

    Page<Video> queryByPage(Integer pageSize, Integer pageNo,Video video);

    Map<String,Object> queryByPage(String category, String name, Integer pageNo);



}
